package cn.ljl.sys.mapper;

import cn.ljl.sys.domain.Role;
import cn.ljl.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2023-02-13
 */
public interface RoleMapper extends BaseMapper<Role> {


    void addRoleMenus(Long id, List<Long> menus);

    void addRolePermissions(Long id, List<Long> permissions);

    void delMenusByRoleId(Long id);

    void delPermissionsByRoleId(Long id);

    void delEmployeeRoleByRoleId(Long id);
}
